// index.js
// 获取应用实例
import musicList from '../../utils/data'

const app = getApp()

Page({
  data: {
    list: []
  },
  
  onLoad() {
    console.log(musicList)
    this.setData({
      list:musicList
    })
  },
  go(e){
    let index = e.currentTarget.dataset.index
    wx.navigateTo({
      url: `/pages/play/play?index=${index}`,
    })
  }
})
